package com.imageim.yimirror.common.util;

import com.imageim.yimirror.R;
import com.imageim.yimirror.base.BaseApplication;

/**
 * Created by Yuaihen on 2017/12/22.
 * 根据对应风格的ID来返回风格描述文字
 */

public class StyleUtil {

    //获取风格描述文字
    public static String getStyleDesc(int styleId) {
        switch (styleId) {
            case 1:
                return BaseApplication.getContext().getString(R.string.style_desc_sweet);
            case 2:
                return BaseApplication.getContext().getString(R.string.style_desc_classical);
            case 3:
                return BaseApplication.getContext().getString(R.string.style_desc_cool);
            case 4:
                return BaseApplication.getContext().getString(R.string.style_desc_romance);
            case 5:
                return BaseApplication.getContext().getString(R.string.style_desc_modern);
            case 6:
                return BaseApplication.getContext().getString(R.string.style_desc_elegant);
            case 7:
                return BaseApplication.getContext().getString(R.string.style_desc_nature);
            case 8:
                return BaseApplication.getContext().getString(R.string.style_desc_fashion);
            default:
                return "";

        }
    }


    //获取风格对应的头像
    public static int getHeadForId(int styleId) {
        switch (styleId) {
            case 1:
                return R.drawable.stylerecommend_icon_head_sweet;
            case 2:
                return R.drawable.stylerecommend_icon_head_classical;
            case 3:
                //                return R.drawable.stylerecommend_icon_head_cool;
            case 4:
                return R.drawable.stylerecommend_icon_head_romance;
            case 5:
                return R.drawable.stylerecommend_icon_head_modern;
            case 6:
                //                return R.drawable.stylerecommend_icon_head_elegant;
            case 7:
                return R.drawable.stylerecommend_icon_head_nature;
            case 8:
                return R.drawable.stylerecommend_icon_head_fashion;
            default:
                return 0;
        }
    }


    //获取风格对应的色调定位
    public static int getColorImageForId(int styleId) {
        switch (styleId) {
            case 1:
                return R.drawable.personal_icon_color_1;
            case 2:
                return R.drawable.personal_icon_color_2;
            case 3:
                return R.drawable.personal_icon_color_3;
            case 4:
                return R.drawable.personal_icon_color_4;
            case 5:
                return R.drawable.personal_icon_color_5;
            case 6:
                return R.drawable.personal_icon_color_6;
            case 7:
                return R.drawable.personal_icon_color_6;
            case 8:
                return R.drawable.personal_icon_color_3;
            //                男性整体色调定位
            case 10001:
                return R.drawable.personal_icon_color_101;
            case 10002:
                return R.drawable.personal_icon_color_102;
            case 10003:
                return R.drawable.personal_icon_color_103;
            case 10004:
                return R.drawable.personal_icon_color_105;
            case 10005:
                return R.drawable.personal_icon_color_107;
            default:
                return 0;
        }
    }

    //获取整体色搭
    public static int getDressIconOneByStyleId(int styleId) {
        switch (styleId) {
            case 1:
                return R.drawable.personal_icon_dress_guide_1_1;
            case 2:
                return R.drawable.personal_icon_dress_guide_2_1;
            case 3:
                return R.drawable.personal_icon_dress_guide_3_1;
            case 4:
                return R.drawable.personal_icon_dress_guide_4_1;
            case 5:
                return R.drawable.personal_icon_dress_guide_5_1;
            case 6:
                return R.drawable.personal_icon_dress_guide_6_1;
            case 7:
                return R.drawable.personal_icon_dress_guide_6_1;
            case 8:
                return R.drawable.personal_icon_dress_guide_3_1;
            case 10001:
                return R.drawable.personal_icon_dress_guide_101_1;
            case 10002:
                return R.drawable.personal_icon_dress_guide_102_1;
            case 10003:
                return R.drawable.personal_icon_dress_guide_103_1;
            case 10004:
                return R.drawable.personal_icon_dress_guide_105_1;
            case 10005:
                return R.drawable.personal_icon_dress_guide_107_1;
            default:
                return 0;
        }
    }

    //整体色达对比
    public static int getDressIconTwoByStyleId(int styleId) {
        switch (styleId) {
            case 1:
                return R.drawable.personal_icon_dress_guide_1_2;
            case 2:
                return R.drawable.personal_icon_dress_guide_2_2;
            case 3:
                return R.drawable.personal_icon_dress_guide_3_2;
            case 4:
                return R.drawable.personal_icon_dress_guide_4_2;
            case 5:
                return R.drawable.personal_icon_dress_guide_5_2;
            case 6:
                return R.drawable.personal_icon_dress_guide_6_2;
            case 7:
                return R.drawable.personal_icon_dress_guide_6_2;
            case 8:
                return R.drawable.personal_icon_dress_guide_3_2;
            case 10001:
                return R.drawable.personal_icon_dress_guide_101_2;
            case 10002:
                return R.drawable.personal_icon_dress_guide_102_2;
            case 10003:
                return R.drawable.personal_icon_dress_guide_103_2;
            case 10004:
                return R.drawable.personal_icon_dress_guide_105_2;
            case 10005:
                return R.drawable.personal_icon_dress_guide_107_2;
            default:
                return 0;
        }
    }

    public static int getDressIconThreeByStyleId(int styleId) {
        switch (styleId) {
            case 1:
                return R.drawable.personal_icon_dress_guide_1_3;
            case 2:
                return R.drawable.personal_icon_dress_guide_2_3;
            case 3:
                return R.drawable.personal_icon_dress_guide_3_3;
            case 4:
                return R.drawable.personal_icon_dress_guide_4_3;
            case 5:
                return R.drawable.personal_icon_dress_guide_5_3;
            case 6:
                return R.drawable.personal_icon_dress_guide_6_3;
            case 7:
                return R.drawable.personal_icon_dress_guide_6_3;
            case 8:
                return R.drawable.personal_icon_dress_guide_3_3;
            default:
                return 0;
        }
    }

    public static int getShirtsIconForId(int id) {
        switch (id) {
            case 1:
                return R.drawable.personal_icon_grid_1_1;
            case 2:
                return R.drawable.personal_icon_grid_1_2;
            case 3:
                return R.drawable.personal_icon_grid_1_3;
            case 4:
                return R.drawable.personal_icon_grid_1_4;
            case 5:
                return R.drawable.personal_icon_grid_1_5;
            case 6:
                return R.drawable.personal_icon_grid_1_6;
            case 7:
                return R.drawable.personal_icon_grid_1_7;
            case 8:
                return R.drawable.personal_icon_grid_1_8;
            case 9:
                return R.drawable.personal_icon_grid_1_9;
            case 10:
                return R.drawable.personal_icon_grid_1_10;
            case 11:
                return R.drawable.personal_icon_grid_1_11;
            case 12:
                return R.drawable.personal_icon_grid_1_12;
            case 13:
                return R.drawable.personal_icon_grid_1_13;
            case 14:
                return R.drawable.personal_icon_grid_1_14;
            case 15:
                return R.drawable.personal_icon_grid_1_15;
            case 16:
                return R.drawable.personal_icon_grid_1_16;
            case 300:
                return R.drawable.personal_icon_grid_2_300;
            case 301:
                return R.drawable.personal_icon_grid_2_301;
            case 302:
                return R.drawable.personal_icon_grid_2_302;
            case 303:
                return R.drawable.personal_icon_grid_2_303;
            case 304:
                return R.drawable.personal_icon_grid_2_304;
            case 305:
                return R.drawable.personal_icon_grid_2_305;
            case 306:
                return R.drawable.personal_icon_grid_2_306;
            case 307:
                return R.drawable.personal_icon_grid_2_307;
            case 308:
                return R.drawable.personal_icon_grid_2_308;
            case 309:
                return R.drawable.personal_icon_grid_2_309;
            case 310:
                return R.drawable.personal_icon_grid_2_310;
            case 311:
                return R.drawable.personal_icon_grid_2_311;
            default:
                return 0;
        }
    }

    public static int getOverCoatIconForId(int id) {
        switch (id) {
            case 17:
                return R.drawable.personal_icon_grid_2_17;
            case 18:
                return R.drawable.personal_icon_grid_2_18;
            case 19:
                return R.drawable.personal_icon_grid_2_19;
            case 20:
                return R.drawable.personal_icon_grid_2_20;
            case 21:
                return R.drawable.personal_icon_grid_2_21;
            case 22:
                return R.drawable.personal_icon_grid_2_22;
            case 23:
                return R.drawable.personal_icon_grid_2_23;
            case 24:
                return R.drawable.personal_icon_grid_2_24;
            case 25:
                return R.drawable.personal_icon_grid_2_25;
            case 26:
                return R.drawable.personal_icon_grid_2_26;
            case 27:
                return R.drawable.personal_icon_grid_2_27;
            case 28:
                return R.drawable.personal_icon_grid_2_28;
            case 29:
                return R.drawable.personal_icon_grid_2_29;
            case 320:
                return R.drawable.personal_icon_grid_2_320;
            case 321:
                return R.drawable.personal_icon_grid_2_321;
            case 322:
                return R.drawable.personal_icon_grid_2_322;
            case 323:
                return R.drawable.personal_icon_grid_2_323;
            case 324:
                return R.drawable.personal_icon_grid_2_324;
            case 325:
                return R.drawable.personal_icon_grid_2_325;
            case 326:
                return R.drawable.personal_icon_grid_2_326;
            case 327:
                return R.drawable.personal_icon_grid_2_327;
            default:
                return 0;
        }
    }


    public static int getPantsIconForId(int id) {
        switch (id) {
            case 31:
                return R.drawable.personal_icon_grid_3_31;
            case 32:
                return R.drawable.personal_icon_grid_3_32;
            case 33:
                return R.drawable.personal_icon_grid_3_33;
            case 34:
                return R.drawable.personal_icon_grid_3_34;
            case 35:
                return R.drawable.personal_icon_grid_3_35;
            default:
                return 0;
        }
    }

    public static int getFullDressIconForId(int id) {
        switch (id) {
            case 36:
                return R.drawable.personal_icon_grid_4_36;
            case 37:
                return R.drawable.personal_icon_grid_4_37;
            case 38:
                return R.drawable.personal_icon_grid_4_38;
            case 39:
                return R.drawable.personal_icon_grid_4_39;
            case 40:
                return R.drawable.personal_icon_grid_4_40;
            case 41:
                return R.drawable.personal_icon_grid_4_41;
            case 42:
                return R.drawable.personal_icon_grid_4_42;
            case 43:
                return R.drawable.personal_icon_grid_4_43;
            case 44:
                return R.drawable.personal_icon_grid_4_44;
            case 45:
                return R.drawable.personal_icon_grid_4_45;
            case 46:
                return R.drawable.personal_icon_grid_4_46;
            case 47:
                return R.drawable.personal_icon_grid_4_47;
            case 48:
                return R.drawable.personal_icon_grid_4_48;
            //            case 49:
            //                return R.drawable.personal_icon_grid_4_49;
            case 50:
                return R.drawable.personal_icon_grid_4_50;
            case 51:
                return R.drawable.personal_icon_grid_4_51;
            default:
                return 0;
        }
    }


    public static int getFabricIconForId(int id) {
        switch (id) {
            case 53:
                return R.drawable.personal_icon_grid_5_53;
            case 54:
                return R.drawable.personal_icon_grid_5_54;
            case 55:
                return R.drawable.personal_icon_grid_5_55;
            case 56:
                return R.drawable.personal_icon_grid_5_56;
            case 57:
                return R.drawable.personal_icon_grid_5_57;
            case 58:
                return R.drawable.personal_icon_grid_5_58;
            case 59:
                return R.drawable.personal_icon_grid_5_59;
            case 60:
                return R.drawable.personal_icon_grid_5_60;
            default:
                return 0;
        }
    }

    public static int getCheongSamIconForId(int id) {
        switch (id) {
            case 61:
                return R.drawable.personal_icon_grid_6_61;
            case 62:
                return R.drawable.personal_icon_grid_6_62;
            case 63:
                return R.drawable.personal_icon_grid_6_63;
            case 64:
                return R.drawable.personal_icon_grid_6_64;
            case 65:
                return R.drawable.personal_icon_grid_6_65;
            case 66:
                return R.drawable.personal_icon_grid_6_66;
            case 67:
                return R.drawable.personal_icon_grid_6_67;
            case 68:
                return R.drawable.personal_icon_grid_6_68;
            case 69:
                return R.drawable.personal_icon_grid_6_69;
            case 70:
                return R.drawable.personal_icon_grid_6_70;
            default:
                return 0;
        }
    }

    public static int getSkirtIconForId(int id) {
        switch (id) {
            case 71:
                return R.drawable.personal_icon_grid_7_71;
            case 72:
                return R.drawable.personal_icon_grid_7_72;
            case 73:
                return R.drawable.personal_icon_grid_7_73;
            case 74:
                return R.drawable.personal_icon_grid_7_74;
            case 75:
                return R.drawable.personal_icon_grid_7_75;
            case 76:
                return R.drawable.personal_icon_grid_7_76;
            case 77:
                return R.drawable.personal_icon_grid_7_77;
            case 78:
                return R.drawable.personal_icon_grid_7_78;
            default:
                return 0;
        }
    }

    public static int getPatternIconForId(int id) {
        switch (id) {
            case 80:
                return R.drawable.personal_icon_grid_8_80;
            case 81:
                return R.drawable.personal_icon_grid_8_81;
            case 82:
                return R.drawable.personal_icon_grid_8_82;
            case 83:
                return R.drawable.personal_icon_grid_8_83;
            case 84:
                return R.drawable.personal_icon_grid_8_84;
            case 85:
                return R.drawable.personal_icon_grid_8_85;
            default:
                return 0;
        }
    }


    public static int getSuitJacketIconForId(int id) {
        switch (id) {
            case 86:
                return R.drawable.personal_icon_grid_9_86;
            case 87:
                return R.drawable.personal_icon_grid_9_87;
            case 88:
                return R.drawable.personal_icon_grid_9_88;
            case 89:
                return R.drawable.personal_icon_grid_9_89;
            case 90:
                return R.drawable.personal_icon_grid_9_90;
            case 91:
                return R.drawable.personal_icon_grid_9_91;
            case 92:
                return R.drawable.personal_icon_grid_9_92;
            case 93:
                return R.drawable.personal_icon_grid_9_93;
            case 94:
                return R.drawable.personal_icon_grid_9_94;
            case 95:
                return R.drawable.personal_icon_grid_9_95;
            case 96:
                return R.drawable.personal_icon_grid_9_96;
            case 97:
                return R.drawable.personal_icon_grid_9_97;
            case 98:
                return R.drawable.personal_icon_grid_9_98;
            case 340:
                return R.drawable.personal_icon_grid_2_340;
            case 341:
                return R.drawable.personal_icon_grid_2_341;
            case 342:
                return R.drawable.personal_icon_grid_2_342;
            default:
                return 0;
        }
    }

    public static int getShoesIconForId(int id) {
        switch (id) {
            case 101:
                return R.drawable.personal_icon_grid_10_101;
            case 102:
                return R.drawable.personal_icon_grid_10_102;
            case 103:
                return R.drawable.personal_icon_grid_10_103;
            case 104:
                return R.drawable.personal_icon_grid_10_104;
            case 105:
                return R.drawable.personal_icon_grid_10_105;
            case 106:
                return R.drawable.personal_icon_grid_10_106;
            case 107:
                return R.drawable.personal_icon_grid_10_107;
            case 108:
                return R.drawable.personal_icon_grid_10_108;
            case 109:
                return R.drawable.personal_icon_grid_10_109;
            case 110:
                return R.drawable.personal_icon_grid_10_110;
            case 111:
                return R.drawable.personal_icon_grid_10_111;
            case 112:
                return R.drawable.personal_icon_grid_10_112;
            case 113:
                return R.drawable.personal_icon_grid_10_113;
            case 114:
                return R.drawable.personal_icon_grid_10_114;
            case 115:
                return R.drawable.personal_icon_grid_10_115;
            case 116:
                return R.drawable.personal_icon_grid_10_116;
            case 117:
                return R.drawable.personal_icon_grid_10_117;
            case 118:
                return R.drawable.personal_icon_grid_10_118;
            case 119:
                return R.drawable.personal_icon_grid_10_119;
            case 120:
                return R.drawable.personal_icon_grid_10_120;
            case 121:
                return R.drawable.personal_icon_grid_10_121;
            case 122:
                return R.drawable.personal_icon_grid_10_122;
            case 123:
                return R.drawable.personal_icon_grid_10_123;
            case 124:
                return R.drawable.personal_icon_grid_10_124;
            case 125:
                return R.drawable.personal_icon_grid_10_125;
            case 126:
                return R.drawable.personal_icon_grid_10_126;
            case 350:
                return R.drawable.personal_icon_grid_10_350;
            case 351:
                return R.drawable.personal_icon_grid_10_351;
            case 352:
                return R.drawable.personal_icon_grid_10_352;
            case 353:
                return R.drawable.personal_icon_grid_10_353;
            case 354:
                return R.drawable.personal_icon_grid_10_354;
            case 355:
                return R.drawable.personal_icon_grid_10_355;
            case 356:
                return R.drawable.personal_icon_grid_10_356;
            case 357:
                return R.drawable.personal_icon_grid_10_357;
            case 358:
                return R.drawable.personal_icon_grid_10_358;
            case 359:
                return R.drawable.personal_icon_grid_10_359;
            case 360:
                return R.drawable.personal_icon_grid_10_360;
            case 361:
                return R.drawable.personal_icon_grid_10_361;
            case 362:
                return R.drawable.personal_icon_grid_10_362;
            case 363:
                return R.drawable.personal_icon_grid_10_363;
            case 364:
                return R.drawable.personal_icon_grid_10_364;
            case 365:
                return R.drawable.personal_icon_grid_10_365;
            case 366:
                return R.drawable.personal_icon_grid_10_366;
            case 367:
                return R.drawable.personal_icon_grid_10_367;
            case 368:
                return R.drawable.personal_icon_grid_10_368;
            default:
                return 0;
        }
    }


    public static int getSuitTypeIconForId(int id) {
        switch (id) {
            case 1:
                return R.drawable.personal_icon_good;
            case 2:
                return R.drawable.personal_icon_bad;
            case 3:
                return R.drawable.personal_icon_common;
            default:
                return 0;
        }
    }

}
